package com.jlkf.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jlkf.service.UserMessageFormworkService;
/**
 * 模板
 * @author DN
 *
 */
@Controller
@RequestMapping("userMessageFormwork")
public class UserMessageFormworkController {


	@Autowired
	private UserMessageFormworkService userMessageFormworkService;
	
	@RequestMapping("getList")
	public Object getList(String  formworkName,Integer pageNo,Integer pageSize){
		return userMessageFormworkService.getList(formworkName,pageNo, pageSize);
	}
	
	@RequestMapping("addOrUpdate")
	@ResponseBody
	public Object addOrUpdate(@RequestBody String json){
		return userMessageFormworkService.addOrUpdate(json);
	}
	
	@RequestMapping("del")
	public Object del(String ids){ 
		return userMessageFormworkService.del(ids);
	}
	//发送消息
	@RequestMapping("sendMag")
	public  Object sendMag(String ids,Long id){ 
		return userMessageFormworkService.sendMag(ids,id);
	}
}
